<!--{template admin/tpl/header}-->
<div class="mainarea">
	<div class="maininner">
	<!--{if $allowmanage}-->
	<div class="tabs_header">
		<ul class="tabs">
			<li $actives[all]><a href="admincp.php?ac=release"><span>浏览全部征稿活动</span></a></li>
			<li $actives[tcheck]><a href="###"><span>活动审核</span></a></li>
			<li $actives[tadd]><a href="###"><span>发布征稿</span></a></li>
		</ul>
	</div>
	<!--{/if}-->

<!--{if $_GET['op']!='tcheck'&&$_GET['op']!='tedit'&&$_GET['op']!='tadd'}-->
	
	<form method="get" action="admincp.php">
	<div class="block style4">
		<table cellspacing="3" cellpadding="3">

		<!--{if $allowmanage}-->
		<tr>
			<th>发布人UID</th><td><input type="text" name="uid" value="$_GET[uid]"></td>
		</tr>
		<!--{/if}-->

		<tr><th>发布时间</th><td colspan="3">
			<input type="text" name="time1" value="$_GET[time1]" size="10"> ~
			<input type="text" name="time2" value="$_GET[time2]" size="10"> (YYYY-MM-DD)
		</td></tr>
		
		<tr><th>结果排序</th>
		<td colspan="3">
		<select name="orderby">
		<option value="">默认排序</option>
		<option value="time"$orderby[time]>发布时间</option>
		</select>
		<select name="ordersc">
		<option value="desc"$ordersc[desc]>递减</option>
		<option value="asc"$ordersc[asc]>递增</option>
		</select>
		<select name="perpage">
		<option value="20"$perpages[20]>每页显示20个</option>
		<option value="50"$perpages[50]>每页显示50个</option>
		<option value="100"$perpages[100]>每页显示100个</option>
		</select>
		<input type="hidden" name="ac" value="release">
		<input type="submit" name="searchsubmit" value="搜索" class="submit">
		</td>
		</tr>
		</table>
	</div>
	</form>
<!--{/if}-->
<!--{if $_GET['op']=='tcheck'||$_GET['op']=='tedit'||$_GET['op']=='tadd'}-->
	<script language="javascript" src="image/editor/editor_function.js"></script>
	<script language="javascript" src="source/script_upload_jq.js"></script>
	<form method="post" action="admincp.php?ac=release">
	<div class="bdrcontent">
		<div class="cont">
			<!--{if $_GET['op']!='tadd'}--><div class="cont_id"><span class="cont_t">发布人id：</span>$cont_look['uid']</div><!--{/if}-->
			<div class="cont_type"><span class="cont_t">活动名称：</span><input type="text" name="type" value="$cont_look['type']" /></div>
			<div class="cont_content"><span class="cont_t">活动内容：</span><div class="cont_tcont"><a id="doodleBox" href="magic.php?mid=doodle&showid=blog_doodle&target=uchome-ttHtmlEditor&from=editor" style="display:none"></a><textarea class="userData" name="tcont" id="uchome-ttHtmlEditor" style="height:100%;width:100%;display:none;border:0px">$cont_look['tcont']</textarea><iframe src="editor.php?charset=$_SC[charset]&allowhtml=1" name="uchome-ifrHtmlEditor" id="uchome-ifrHtmlEditor" scrolling="no" border="0" frameborder="0" style="width:100%;border: 1px solid #C5C5C5;" height="400"></iframe></div></div>
			<!--{if $_GET['op']=='tadd'}-->
			<input type="hidden" name="tadd" value="tadd" />
			<!--{/if}-->
			<!--{if $_GET['op']!='tadd'}-->
			<input type="hidden" name="tid" value="$tid" />
			<!--{/if}-->
			<!--{if $_GET['op']=='tedit'}-->
			<input type="hidden" name="tedit" value="tedit" />
			<!--{/if}-->
			<!--{if $_GET['op']=='tcheck'}-->
			<div class="cont_check">				
				<select name="tcheck">
					<option value="0">审核中</option>
					<option value="1" <!--{if $cont_look['tcheck']>0}-->selected="selected"<!--{/if}-->>审核已通过</option>
					<option value="-1" <!--{if $cont_look['tcheck']<0}-->selected="selected"<!--{/if}-->>审核未通过</option>
				</select>
			</div>
			<!--{/if}-->
			<div class="cont_submit"><input type="submit" name="tsubmit" value="提交" <!--{if $_GET['op']=='tedit'||$_GET['op']=='tadd'}-->onclick="edit_save();"<!--{/if}--> /><a href="admincp.php?ac=release">返回</a></div>
		</div>
	</div>
	</form>
<!--{else}-->
	<div class="rel_t"><a href="admincp.php?ac=release&op=tadd">发布征稿活动</a></div>
	<!--{if $list}-->
	<div class="bdrcontent">
		<table class="cont_c">
			<tr class="cont_c_t">
				<td width="10%">活动id</td>
				<td width="10%">发布者id</td>
				<td width="20%">活动名称</td>
				<td width="10%">发布时间</td>
				<td width="10%">审核状态</td>
				<td width="10%">活动状态</td>
				<td width="20%">操作</td>
			</tr>
			<!--{loop $list $value}-->
			<tr class="cont_c_c">
				<td>$value['tid']</td>
				<td>$value['uid']</td>
				<td>$value['type']</td>
				<td><!--{date('m-d H:i',$value['time'],1)}--></td>
				<td>
					<!--{if $value['tcheck'] > 0}-->
						审核已通过
					<!--{elseif $value['tcheck'] < 0}-->
						审核未通过
					<!--{else}-->
						审核中
					<!--{/if}-->
				</td>
				<td>
					<!--{if $value['isopen'] > 0}-->
						关闭
					<!--{else}-->
						开启
					<!--{/if}-->
				</td>
				<td><a href="admincp.php?ac=release&op=tedit&tid=$value['tid']">修改</a> | <a href="admincp.php?ac=release&op=tcheck&tid=$value['tid']">审核</a> | <!--{if $value['isopen'] > 0}--><a href="admincp.php?ac=release&op=topen&tid=$value['tid']">开启</a><!--{else}--><a href="admincp.php?ac=release&op=tclose&tid=$value['tid']">关闭</a><!--{/if}--></td>
			</tr>
			<!--{/loop}-->
		</table>
		<div class="page" style="clear:both;margin:10px 5px;">$multi</div>
	</div>
	<!--{else}-->
	<div class="bdrcontent">
		<p>指定条件下还没有数据</p>
	</div>
	<!--{/if}-->

<!--{/if}-->

	</div>
</div>
<div class="side">
	<!--{template admin/tpl/side}-->
</div>

<!--{template admin/tpl/footer}-->